GtkActionHelper: Avoid null deref in debug code
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:38:01 +0000 (18:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Jul 2015 22:38:01 +0000 (18:38 -0400)
gtk/gtkactionhelper.c

index 50060ee092c3e9e569b17d7e05e44a53bb4f5e51..2c286279f7b318782e768d60d2bdfd42a259b58d 100644 (file)
@@ -415,7 +415,7 @@ gtk_action_helper_set_action_name (GtkActionHelper *helper,
     return;
 
   GTK_NOTE(ACTIONS,
-           if (!strchr (action_name, '.'))
+           if (action_name == NULL || !strchr (action_name, '.'))
              g_message ("actionhelper: action name %s doesn't look like 'app.' or 'win.' "
                         "which means that it will probably not work properly.", action_name));